//
//  WBProfileController.swift
//  weibobo
//
//  Created by KIMI on 16/9/19.
//  Copyright © 2016年 KIMI. All rights reserved.
//

import UIKit

class WBProfileController: WBVisitorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        if isLogin{
            
            addNavRightButton()
        }else{
            
            visitorView?.updateVisitorInfo(messageTitle: "登录后，你的微博、相册、个人资料会显示在这里，展示给别人", imageName: "visitordiscover_image_profile")
        }
    }

  

    func addNavRightButton(){
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(pushAction))
        
    }
    
    func pushAction()->Void{
        
     let testVc = WBTestController()
        navigationController?.pushViewController(testVc, animated: true)
    }

}
